home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
comm
/
ytsg3.zip
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1995-04-08
|
16KB
|
347 lines
#UNIXLIKE Development makefile
# Each program includes (or will soon) a file from \source\aixlsrc\include
# Make sure this path is part of the INCLUDE environment variable
# 05.03.93: modified for IBM C-SET/2 make
# NOTE: the more program is not being compiled for 32 bit, nor is ps
# MS C6.0: CDFLAGS = /c /Gd- /Sm /Re /Ss /Ms /O- /Ti /Gm- /Q+ /I\source\aixlsrc\include
# MS C6.0: CFLAGS = /c /Gd- /Sm /Re /Ss /Ms /O+ /Gm- /Q+ /I\source\aixlsrc\include
# MS C6.0: CMFLAGS = /c /Gd- /Sm /Re /Ss /Ms /O+ /Gm+ /Q+ /i\source\aixlsrc\include
# MS C6.0: COFLAGS = /c /Gd- /Sm /Re /Ss /Ms /O+ /Gm- /Q+ /I\source\aixlsrc\include
# MS C6.0: LDFLAGS = /DEBUG /ALIGN:32 /EXEPACK /M /NOI
# MS C6.0: LFLAGS = /ALIGN:32 /EXEPACK /M /NOI /NOE
# MS C6.0: COMPILE = ICC
# MS C6.0: LINKER = link386
LINKER = link
CFLAGS = -c -AL -G2s -W3 -Lr -I\source\aixlsrc\src\include
CDFLAGS = -c -AL -G2s -W3 -Lr -I\source\aixlsrc\src\include -Zi -Od
#COFLAGS = -c -AL -I\source\aixlsrc\src\include
#CMFLAGS = -c -AL -I\source\aixlsrc\src\include
COFLAGS = -c -AL -G2s -W3 -Lr -Ozax -Gr -I\source\aixlsrc\src\include
CMFLAGS = -c -AL -G2s -W3 -Lr -Ozax -Gr -I\source\aixlsrc\src\include
#LFLAGS = /NOD LLIBCER.LIB /MAP
LFLAGS = /MAP
LDFLAGS = /CO
COMPILE = CL
B = \source\aixlsrc\bin
F = \source\aixlsrc\fmf
G = \source\aixlsrc\getopt
GU= \source\aixlsrc\greputil
M = \source\aixlsrc\myerror
MF = \source\aixlsrc\mapfiles
MP= \source\aixlsrc\makepath
P = \source\aixlsrc\getopt
S = \source\aixlsrc
SL =\source\aixlsrc\sleep
#Z = \source\aixlsrc\src\more
ATOBJS = $F\fmf+$M\myerror
ATDOBJS = $F\fmfn+$M\myerron
COMPOBJS = $S\compress\compress.obj+$S\compress\comprutl.obj
DFOBJS = $S\df\df+$G\getopt
DUOBJS = $S\du\du+$G\getopt
#FGREPOBJ = $S\fgrep\fgrep+$F\fmfn+$G\getoptn+$M\myerron
FGREPOBJ = $S\fgrep\fgrep+$F\fmf+$G\getopt+$M\myerror
YTSGDOSOBJ = $S\fgrep\ytsgdos+$G\getoptn+$M\myerron
FINDOBJS = $S\find\find+$F\fmf+$M\myerror+$(GU)\greputil
GREPOBJS = $S\grep\grep+$(GU)\greputil+$F\fmf+$M\myerror
HEADOBJS = $S\head\head+$F\fmf+$M\myerror
RMOBJS = $S\rm\rm+$M\myerror+$G\getopt
SEDOBJS = $S\sed\sed+$S\sed\sedparse+$S\sed\sedapply+$S\sed\sedtable+$F\fmf+$M\myerror+$(GU)\greputil
SLEEPOBJ = $S\sleep\sleepexe+$(SL)\sleep
SPLITOBJ = $S\split\split+$S\compress\comprutl
TAILOBJS = $S\tail\tail+$F\fmf+$M\myerror+$(SL)\sleep
TEEOBJS = $S\tee\tee+$F\fmf+$M\myerror
TIMEXOBJ = $S\timex\timex+$G\getopt+$M\myerror
TOUCHOBJ = $S\touch\touch+$F\fmf+$G\getopt+$M\myerror
TROBJ = $S\tr\tr+$G\getopt
UNIQOBJS = $S\uniq\uniq+$(MP)\makepath+$M\myerror
WCOBJS = $S\wc\wc+$F\fmf+$G\getopt+$M\myerror
WHICHOBJ = $S\which\which+$F\fmf+$M\myerror
all : $B\at.exe $B\atd.exe $B\atob.exe $B\btoa.exe \
$B\compress.exe $B\df.exe $B\du.exe \
$B\fgrep.exe $B\find.exe $B\grep.exe $B\head.exe \
$B\kill.exe $B\printenv.exe \
$B\pwd.exe $B\rm.exe $B\sed.exe $B\sleep.exe \
$B\split.exe \
$B\strings.exe $B\tail.exe $B\tee.exe $B\timex.exe \
$B\tr.exe $B\touch.exe $B\uniq.exe $B\uudecode.exe \
$B\uuencode.exe $B\wc.exe $B\which.exe
$B\at.exe : $S\at\at.obj $S\at\at.def $F\fmf.obj $M\myerror.obj
$(LINKER) $(LFLAGS) $S\at\at+$(ATOBJS),$B\at.exe,NUL,,$S\at\at.def;
$B\atd.exe : $S\at\atd.obj $S\at\atd.def
$(LINKER) $(LFLAGS) $S\at\atd+$(ATDOBJS),$B\atd.exe,NUL,,$S\at\atd.def;
$B\atob.exe : $S\compress\atob.obj $S\compress\atob.def
$(LINKER) $(LFLAGS) $S\compress\atob,$B\atob.exe,NUL,,$S\compress\atob.def;
$B\btoa.exe : $S\compress\btoa.obj $S\compress\btoa.def
$(LINKER) $(LFLAGS) $S\compress\btoa,$B\btoa.exe,NUL,,$S\compress\btoa.def;
$B\compress.exe : $S\compress\compress.obj $S\compress\comprutl.obj \
$S\compress\compress.def
# $(LINKER) $(LDFLAGS) $(COMPOBJS),$B\compress.exe,$(MF)\compress.map,,$S\compress\compress.def;
$(LINKER) $(LFLAGS) $(COMPOBJS),$B\compress.exe,NUL,,$S\compress\compress.def;
$B\df.exe : $S\df\df.obj $S\df\df.def $G\getopt.obj
$(LINKER) $(LFLAGS) $(DFOBJS),$B\df.exe,NUL,,$S\df\df.def;
$B\du.exe : $S\du\du.obj $S\du\du.def $G\getopt.obj
$(LINKER) $(LFLAGS) $(DUOBJS),$B\du.exe,NUL,,$S\du\du.def;
$B\fgrep.exe : $F\fmfn.obj $S\fgrep\fgrep.obj $G\getoptn.obj $M\myerron.obj \
$S\fgrep\fgrep.def
# $(LINKER) $(LDFLAGS) /M $(FGREPOBJ),$B\fgrep.exe,$(MF)\fgrep.map,,$S\fgrep\fgrep.def;
$(LINKER) $(LFLAGS) $(FGREPOBJ),$B\fgrep.exe,NUL,,$S\fgrep\fgrep.def;
$B\ytsgdos.exe : $S\fgrep\ytsgdos.obj $G\getoptn.obj $M\myerron.obj
$(LINKER) $(LFLAGS) $(YTSGDOSOBJ),$B\ytsgdos.exe,,,;
$B\find.exe : $F\fmf.obj $M\myerror.obj $(GU)\greputil.obj $S\find\find.obj \
$S\find\find.def
$(LINKER) $(LFLAGS) $(FINDOBJS),$B\find.exe,NUL,,$S\find\find.def;
$B\grep.exe : $F\fmf.obj $S\grep\grep.obj $M\myerror.obj \
$S\grep\grep.def $(GU)\greputil.obj
$(LINKER) $(LFLAGS) $(GREPOBJS),$B\grep.exe,NUL,,$S\grep\grep.def;
$B\head.exe : $F\fmf.obj $M\myerror.obj $S\head\head.obj $S\head\head.def
$(LINKER) $(LFLAGS) $(HEADOBJS),$B\head.exe,NUL,,$S\head\head.def;
$B\kill.exe : $S\kill\kill.obj $S\kill\kill.def
$(LINKER) $(LFLAGS) $S\kill\kill,$B\kill.exe,NUL,,$S\kill\kill.def;
#$B\more.exe : $F\fmf.obj $M\myerror.obj $(GU)\greputil.obj $Z\more.obj \
# $Z\more.def $Z\mogetcmd.obj $Z\morevio.obj $Z\moredio.obj \
# $Z\morusage.obj $Z\movetols.obj $Z\moregrep.obj
# $(LINKER) @$S\more\more.lnk
$B\printenv.exe : $S\printenv\printenv.obj $S\printenv\printenv.def
$(LINKER) $(LFLAGS) $S\printenv\printenv,$B\printenv.exe,NUL,,$S\printenv\printenv.def;
#$B\ps.exe : $S\ps\ps.obj $S\ps\ps.def
# $(LINKER) $(LFLAGS) /M $S\ps\ps,$B\ps.exe,$(MF)\ps.map,,$S\ps\ps.def;
# $(LINKER) $(LFLAGS) $S\ps\ps,$B\ps.exe,NUL,,$S\ps\ps.def;
$B\pwd.exe : $S\pwd\pwd.obj $S\pwd\pwd.def
$(LINKER) $(LFLAGS) $S\pwd\pwd,$B\pwd.exe,NUL,,$S\pwd\pwd.def;
$B\rm.exe : $S\rm\rm.obj $M\myerror.obj $S\rm\rm.def
$(LINKER) $(LFLAGS) $(RMOBJS),$B\rm.exe,NUL,,$S\rm\rm.def;
$B\sed.exe : $F\fmf.obj $M\myerror.obj $(GU)\greputil.obj $S\sed\sed.obj \
$S\sed\sed.def $S\sed\sedparse.obj $S\sed\sedapply.obj \
$S\sed\sedtable.obj
# $(LINKER) $(LFLAGS) $(SEDOBJS),$B\sed.exe,NUL,,$S\sed\sed.def;
$(LINKER) @$S\sed\sed.lnk
$B\sleep.exe : $S\sleep\sleepexe.obj $(SL)\sleep.obj $S\sleep\sleepexe.def
$(LINKER) $(LFLAGS) $(SLEEPOBJ),$B\sleep.exe,NUL,,$S\sleep\sleepexe.def;
$B\split.exe : $S\split\split.obj $S\compress\comprutl.obj \
$S\split\split.def
$(LINKER) $(LFLAGS) $(SPLITOBJ),$B\split.exe,NUL,,$S\split\split.def;
$B\strings.exe : $S\strings\strings.obj $S\strings\strings.def
$(LINKER) $(LFLAGS) $S\strings\strings,$B\strings.exe,NUL,,$S\strings\strings.def;
$B\tail.exe : $F\fmf.obj $M\myerror.obj $(SL)\sleep.obj $S\tail\tail.obj \
$S\tail\tail.def
$(LINKER) $(LFLAGS) $(TAILOBJS),$B\tail.exe,NUL,,$S\tail\tail.def;
$B\tee.exe : $F\fmf.obj $S\tee\tee.obj $S\tee\tee.def $M\myerror.obj
$(LINKER) $(LFLAGS) $(TEEOBJS),$B\tee.exe,NUL,,$S\tee\tee.def;
$B\timex.exe : $S\timex\timex.obj $G\getopt.obj $S\timex\timex.def \
$M\myerror.obj
$(LINKER) $(LFLAGS) $(TIMEXOBJ),$B\timex.exe,NUL,,$S\timex\timex.def;
$B\touch.exe : $F\fmf.obj $S\touch\touch.obj $G\getopt.obj $M\myerror.obj \
$S\touch\touch.def
$(LINKER) $(LFLAGS) $(TOUCHOBJ),$B\touch.exe,NUL,,$S\touch\touch.def;
$B\tr.exe : $G\getopt.obj $S\tr\tr.obj $S\tr\tr.def
$(LINKER) $(LFLAGS) $(TROBJ),$B\tr.exe,NUL,,$S\tr\tr.def
$B\uniq.exe : $(MP)\makepath.obj $M\myerror.obj $S\uniq\uniq.obj \
$S\uniq\uniq.def
$(LINKER) $(LFLAGS) $(UNIQOBJS),$B\uniq.exe,NUL,,$S\uniq\uniq.def;
$B\uudecode.exe : $S\uuencode\uudecode.obj $S\uuencode\uudecode.def
$(LINKER) $(LFLAGS) $S\uuencode\uudecode,$B\uudecode.exe,NUL,,$S\uuencode\uudecode.def
$B\uuencode.exe : $S\uuencode\uuencode.obj $S\uuencode\uuencode.def
$(LINKER) $(LFLAGS) $S\uuencode\uuencode,$B\uuencode.exe,NUL,,$S\uuencode\uuencode.def
$B\wc.exe : $F\fmf.obj $S\wc\wc.obj $G\getopt.obj $M\myerror.obj $S\wc\wc.def
$(LINKER) $(LFLAGS) $(WCOBJS),$B\wc.exe,NUL,,$S\wc\wc.def;
$B\which.exe : $F\fmf.obj $S\which\which.obj $M\myerror.obj $S\which\which.def
$(LINKER) $(LFLAGS) $(WHICHOBJ),$B\which.exe,NUL,,$S\which\which.def;
$S\at\at.obj : $S\at\at.c $S\at\at.h
$(COMPILE) $(CFLAGS) -I$F -I$S\at /Fo$S\at\at.obj $S\at\at.c
$S\at\atd.obj : $S\at\atd.c $S\at\at.h
# $(COMPILE) $(CFLAGS) -Gm+ -I$S\at -I$F /Fo$S\at\atd.obj $S\at\atd.c
$(COMPILE) $(CMFLAGS) -I$S\at -I$F /Fo$S\at\atd.obj $S\at\atd.c
$S\compress\atob.obj : $S\compress\atob.c
$(COMPILE) $(CFLAGS) -DOS2 /Fo$S\compress\atob.obj $S\compress\atob.c
$S\compress\btoa.obj : $S\compress\btoa.c
$(COMPILE) $(CFLAGS) /Fo$S\compress\btoa.obj $S\compress\btoa.c
$S\compress\compress.obj : $S\compress\compress.c
$(COMPILE) $(CFLAGS) -DOS2 /Fo$S\compress\compress.obj $S\compress\compress.c
# $(COMPILE) -c -AH -G2s -Zi -Od -DOS2 /Fc$(MF)\compress.cod /I\source\aixlsrc\include /Fo$S\compress\compress.obj $S\compress\compress.c
$S\compress\comprutl.obj : $S\compress\comprutl.c
$(COMPILE) $(COFLAGS) /Fo$S\compress\comprutl.obj $S\compress\comprutl.c
# $(COMPILE) $(CDFLAGS) /Fc$(MF)\comprutl.cod /Fo$S\compress\comprutl.obj $S\compress\comprutl.c
$S\df\df.obj : $S\df\df.c $S\df\df.h
$(COMPILE) $(COFLAGS) -I$S\df /Fo$S\df\df.obj $S\df\df.c
$S\du\du.obj : $S\du\du.c
$(COMPILE) $(COFLAGS) -I$S\du /Fo$S\du\du.obj $S\du\du.c
$S\fgrep\fgrep.obj : $S\fgrep\fgrep.c $F\fmf.h
# $(COMPILE) $(CDFLAGS) -Sn- /Fc$(MF)\fgrep.cod /I$F /Fo$S\fgrep\fgrep.obj $S\fgrep\fgrep.c
$(COMPILE) $(COFLAGS) -Sn- /I$F /Fo$S\fgrep\fgrep.obj $S\fgrep\fgrep.c
$S\fgrep\ytsgdos.obj : $S\fgrep\ytsgdos.c
$(COMPILE) $(CMFLAGS) -Sn- /Fo$S\fgrep\ytsgdos.obj $S\fgrep\ytsgdos.c
$S\find\find.obj : $S\find\find.c $(GU)\greputil.h $F\fmf.h
$(COMPILE) $(COFLAGS) /I$(GU) /I$F /Fo$S\find\find.obj $S\find\find.c
$S\grep\grep.obj : $S\grep\grep.c $F\fmf.h $S\grep\grep.h $(GU)\greputil.h
$(COMPILE) $(COFLAGS) /I$(GU) /I$F /I$S\grep /Fo$S\grep\grep.obj $S\grep\grep.c
$S\head\head.obj : $S\head\head.c $F\fmf.h
$(COMPILE) $(COFLAGS) /I$F /Fo$S\head\head.obj $S\head\head.c
$S\kill\kill.obj : $S\kill\kill.c
$(COMPILE) $(COFLAGS) /Fo$S\kill\kill.obj $S\kill\kill.c
#$Z\more.obj : $Z\more.c $Z\more.h
# $(COMPILE) $(COFLAGS) /I$Z /Fo$Z\more.obj /I$F $Z\more.c
#
#$Z\mogetcmd.obj : $Z\mogetcmd.c $Z\more.h
# $(COMPILE) $(COFLAGS) /I$Z /Fo$Z\mogetcmd.obj $Z\mogetcmd.c
#
#$Z\morevio.obj : $Z\morevio.c $Z\more.h
# $(COMPILE) $(COFLAGS) /I$Z /Fo$Z\morevio.obj $Z\morevio.c
#
#$Z\moredio.obj : $Z\moredio.c $Z\more.h
# $(COMPILE) $(COFLAGS) /I$Z /Fo$Z\moredio.obj $Z\moredio.c
#
#$Z\morusage.obj : $Z\morusage.c
# $(COMPILE) $(COFLAGS) /I$Z /Fo$Z\morusage.obj $Z\morusage.c
#
#$Z\movetols.obj : $Z\movetols.c $Z\more.h
# $(COMPILE) $(COFLAGS) /I$Z /Fo$Z\movetols.obj $Z\movetols.c
#
#$Z\moregrep.obj : $Z\moregrep.c $Z\more.h $S\grep\grep.h \
# $(GU)\greputil.h
# $(COMPILE) $(COFLAGS) /I$(GU) /I$S\grep /I$Z /Fo$Z\moregrep.obj $Z\moregrep.c
#
$S\printenv\printenv.obj : $S\printenv\printenv.c
$(COMPILE) $(COFLAGS) /Fo$S\printenv\printenv.obj $S\printenv\printenv.c
#$S\ps\ps.obj : $S\ps\ps.c $S\ps\ps.h
# $(COMPILE) $(COFLAGS) /I$S\ps /Fo$S\ps\ps.obj $S\ps\ps.c
$S\pwd\pwd.obj : $S\pwd\pwd.c
$(COMPILE) $(COFLAGS) /Fo$S\pwd\pwd.obj $S\pwd\pwd.c
$S\rm\rm.obj : $S\rm\rm.c $S\rm\rm.h
$(COMPILE) $(COFLAGS) /I$S\rm /Fo$S\rm\rm.obj $S\rm\rm.c
$S\sed\sed.obj : $S\sed\sed.c $S\sed\sed.h $F\fmf.h
$(COMPILE) $(COFLAGS) /I$F /I$S\sed /Fo$S\sed\sed.obj $S\sed\sed.c
$S\sed\sedparse.obj : $S\sed\sedparse.c $S\sed\sed.h
$(COMPILE) $(COFLAGS) /I$S\sed /Fo$S\sed\sedparse.obj $S\sed\sedparse.c
$S\sed\sedapply.obj : $S\sed\sedapply.c $S\sed\sed.h
$(COMPILE) $(COFLAGS) /I$S\sed /I$S\grep /Fo$S\sed\sedapply.obj $S\sed\sedapply.c
$S\sed\sedtable.obj : $S\sed\sedtable.c $S\sed\sed.h
$(COMPILE) $(COFLAGS) /I$S\sed /Fo$S\sed\sedtable.obj $S\sed\sedtable.c
$S\sleep\sleepexe.obj : $S\sleep\sleepexe.c
$(COMPILE) $(COFLAGS) /Fo$S\sleep\sleepexe.obj $S\sleep\sleepexe.c
$S\split\split.obj : $S\split\split.c
$(COMPILE) $(COFLAGS) /Fo$S\split\split.obj $S\split\split.c
$S\strings\strings.obj : $S\strings\strings.c
$(COMPILE) $(COFLAGS) /Fo$S\strings\strings.obj $S\strings\strings.c
$S\tail\tail.obj : $S\tail\tail.c $F\fmf.h
$(COMPILE) $(COFLAGS) /I$F /Fo$S\tail\tail.obj $S\tail\tail.c
$S\tee\tee.obj : $S\tee\tee.c $F\fmf.h
$(COMPILE) $(COFLAGS) /I$F /Fo$S\tee\tee.obj $S\tee\tee.c
$S\timex\timex.obj : $S\timex\timex.c
$(COMPILE) $(COFLAGS) /Fo$S\timex\timex.obj $S\timex\timex.c
$S\touch\touch.obj : $S\touch\touch.c $F\fmf.h
$(COMPILE) $(COFLAGS) /I$F /Fo$S\touch\touch.obj $S\touch\touch.c
$S\tr\tr.obj : $S\tr\tr.c
$(COMPILE) $(COFLAGS) /Fo$S\tr\tr.obj $S\tr\tr.c
$S\uniq\uniq.obj : $S\uniq\uniq.c
$(COMPILE) $(COFLAGS) /Fo$S\uniq\uniq.obj $S\uniq\uniq.c
$S\uuencode\uudecode.obj : $S\uuencode\uudecode.c
$(COMPILE) $(COFLAGS) /Fo$S\uuencode\uudecode.obj $S\uuencode\uudecode.c
$S\uuencode\uuencode.obj : $S\uuencode\uuencode.c
$(COMPILE) $(COFLAGS) /Fo$S\uuencode\uuencode.obj $S\uuencode\uuencode.c
$S\wc\wc.obj : $S\wc\wc.c $F\fmf.h
$(COMPILE) $(COFLAGS) /I$F /Fo$S\wc\wc.obj $S\wc\wc.c
$S\which\which.obj : $S\which\which.c $F\fmf.h
$(COMPILE) $(COFLAGS) /I$F /Fo$S\which\which.obj $S\which\which.c
$F\fmf.obj : $F\fmf.c $F\fmf.h
$(COMPILE) $(COFLAGS) /Fo$F\fmf.obj $F\fmf.c
$F\fmfn.obj : $F\fmf.c $F\fmf.h
$(COMPILE) $(CMFLAGS) /Fo$F\fmfn.obj $F\fmf.c
$G\getopt.obj : $G\getopt.c
$(COMPILE) $(COFLAGS) /Fo$G\getopt.obj $G\getopt.c
$G\getoptn.obj : $G\getopt.c
$(COMPILE) $(CMFLAGS) /Fo$G\getoptn.obj $G\getopt.c
$(GU)\greputil.obj : $(GU)\greputil.c $(GU)\greputil.h
$(COMPILE) $(COFLAGS) /Fo$(GU)\greputil.obj -I$(GU) $(GU)\greputil.c
$M\myerror.obj : $M\myerror.c
$(COMPILE) $(COFLAGS) /Fo$M\myerror.obj $M\myerror.c
$M\myerron.obj : $M\myerror.c
$(COMPILE) $(CMFLAGS) /Fo$M\myerron.obj $M\myerror.c
$(MP)\makepath.obj : $(MP)\makepath.c
$(COMPILE) $(COFLAGS) /Fo$(MP)\makepath.obj $(MP)\makepath.c
$(SL)\sleep.obj : $(SL)\sleep.c
$(COMPILE) $(COFLAGS) /Fo$(SL)\sleep.obj $(SL)\sleep.c